home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 August / Chip_1999-08_cd.bin / sharewar / htmltool / _SETUP.1 / Animated Status Line.scp < prev    next >
Text File  |  1999-03-02  |  1KB  |  52 lines

  1. <HTMLtool>This script displays some text in the status bar</HTMLtool>
  2. <HTML><HEAD><script language="JavaScript">
  3.   <!-- Funny text script by Bart Jellema
  4.     var hellotext="Put your text here ..."
  5.     var thetext=""
  6.     var started=false
  7.     var step=0
  8.     var times=1
  9.  
  10.     function welcometext()
  11.     {
  12.       times--
  13.       if (times==0)
  14.       {
  15.         if (started==false)
  16.         {
  17.           started = true;
  18.           window.status = hellotext;
  19.           setTimeout("anim()",1);
  20.         }
  21.         thetext = hellotext;
  22.       }
  23.     }
  24.  
  25.     function showstatustext(txt)
  26.     {
  27.       thetext = txt;
  28.       setTimeout("welcometext()",4000)
  29.       times++
  30.     }
  31.  
  32.     function anim()
  33.     {
  34.       step++
  35.       if (step==7) {step=1}
  36.       if (step==1) {window.status='>==='+thetext+'===<'}
  37.       if (step==2) {window.status='=>=='+thetext+'==<='}
  38.       if (step==3) {window.status='>=>='+thetext+'=<=<'}
  39.       if (step==4) {window.status='=>=>'+thetext+'<=<='}
  40.       if (step==5) {window.status='==>='+thetext+'=<=='}
  41.       if (step==6) {window.status='===>'+thetext+'<==='}
  42.       setTimeout("anim()",200);
  43.     }
  44.   // Funny text script by Bart Jellema -->
  45. </script>
  46. </HEAD><BODY>This script operates on the browser status line. Please take a look down.
  47. <SCRIPT LANGUAGE="JavaScript">
  48. <!--
  49. welcometext();
  50. //-->
  51. </SCRIPT>
  52. </BODY></HTML>